package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.Lsh精品种类Model;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by ThinkPad on 2016/9/20.
 */
@Transactional
public interface Lsh精品种类Repository extends JpaRepository<Lsh精品种类Model, Integer>, JpaSpecificationExecutor<Lsh精品种类Model> {

    @Query("select a from Lsh精品种类Model a where a.产品种类=?1")
    Lsh精品种类Model getIdBy产品种类(String productType);
}
